]> git.pld-linux.org Git - packages/libxml++.git/blob - libxml++.spec
6713a7b1229b2e31b19be72177ea9deb769edd1a
[packages/libxml++.git] / libxml++.spec
1 Summary:        C++ interface for working with XML files
2 Summary(pl.UTF-8):      Interfejs C++ do pracy z plikami XML
3 Name:           libxml++
4 Version:        2.38.0
5 Release:        1
6 License:        LGPL v2.1
7 Group:          Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.38/%{name}-%{version}.tar.xz
9 # Source0-md5:  36c2c7a8b7a09aa2118c70a0d51bf4b1
10 URL:            http://libxmlplusplus.sourceforge.net/
11 BuildRequires:  autoconf >= 2.59
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  glibmm-devel >= 2.32.0
14 BuildRequires:  libtool >= 2:2.2.6
15 BuildRequires:  libxml2-devel >= 1:2.7.3
16 BuildRequires:  mm-common >= 0.9.7
17 BuildRequires:  pkgconfig
18 BuildRequires:  tar >= 1:1.22
19 BuildRequires:  xz
20 Requires:       glibmm >= 2.32.0
21 Requires:       libxml2 >= 1:2.7.3
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 libxml++ is a C++ interface for the libxml XML parser library.
26
27 %description -l pl.UTF-8
28 libxml++ jest interfejsem C++ do biblioteki libxml.
29
30 %package devel
31 Summary:        Header files for libxml++
32 Summary(pl.UTF-8):      Pliki nagłówkowe do libxml++
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35 Requires:       glibmm-devel >= 2.32.0
36 Requires:       libxml2-devel >= 1:2.7.3
37
38 %description devel
39 Header files for libxml++.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe do libxml++.
43
44 %package static
45 Summary:        Static libxml++ libraries
46 Summary(pl.UTF-8):      Biblioteka statyczna libxml++
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static libxml++ libraries.
52
53 %description static -l pl.UTF-8
54 Biblioteka statyczna libxml++.
55
56 %package apidocs
57 Summary:        libxml++ API documentation
58 Summary(pl.UTF-8):      Dokumentacja API libxml++
59 Group:          Documentation
60 %if "%{_rpmversion}" >= "5"
61 BuildArch:      noarch
62 %endif
63
64 %description apidocs
65 libxml++ API documentation.
66
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API libxml++.
69
70 %package examples
71 Summary:        libxml++ - example programs
72 Summary(pl.UTF-8):      libxml++ - przykładowe programy
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description examples
77 libxml++ - example programs.
78
79 %description examples -l pl.UTF-8
80 libxml++ - przykładowe programy.
81
82 %prep
83 %setup -q
84
85 %build
86 %configure \
87         --enable-api-exceptions \
88         --enable-static
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
99
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxml++-2.6.la
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README
111 %attr(755,root,root) %{_libdir}/libxml++-2.6.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libxml++-2.6.so.2
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libxml++-2.6.so
117 %{_libdir}/libxml++-2.6
118 %{_includedir}/libxml++-2.6
119 %{_pkgconfigdir}/libxml++-2.6.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libxml++-2.6.a
124
125 %files apidocs
126 %defattr(644,root,root,755)
127 %{_datadir}/devhelp/books/libxml++-2.6
128 %{_docdir}/%{name}-2.6
129
130 %files examples
131 %defattr(644,root,root,755)
132 %{_examplesdir}/%{name}-%{version}
This page took 0.09329 seconds and 2 git commands to generate.